<?php

namespace App\Kuafu\Mybank\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class MybankIncomeCacheEnum extends BaseCodeEnum
{
    private const SHOP_ALL_INCOME_MONTH = 'shop-all-income-month:%s:%s';

    public static function getMonthIncomeKey(int $shopId, string $yearMonth = ''): string
    {
        if (empty($yearMonth)) {
            $yearMonth = date('Ym');
        }
        return sprintf(self::SHOP_ALL_INCOME_MONTH, $shopId, $yearMonth);
    }

//    private const SHOP_SINGLE_ORDER_TYPE_MONTH = 'shop-single-order-type-month:%s:%s:%s';
//
//    public static function getShopAllOrderTypeMonth(int $shopId, string $yearMonth = ''): string
//    {
//        if (empty($yearMonth)) {
//            $yearMonth = date('Ym');
//        }
//        return sprintf(self::SHOP_ALL_INCOME_MONTH, $shopId, $yearMonth);
//    }

}
